home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / MailComposer / MailSpeaker.h < prev    next >
Text File  |  1995-06-12  |  3KB  |  73 lines

  1. //----------------------------------------------------------------------------------------------------
  2. //
  3. //    MailSpeaker
  4. //
  5. //    Inherits From:        Speaker
  6. //
  7. //    Declared In:        MailSpeaker.h
  8. //
  9. //    Class Description
  10. //
  11. //        MailSpeaker is a custom Speaker subclass that supports
  12. //        remote messages implemented in Mail.app's custom Listener
  13. //        subclass MailListener.  After setting its send port (via the method
  14. //        "setSendPort: (port_t) aPort" ) to named port "MailSendDemo", 
  15. //        you may message an instance of this class with one of the 
  16. //        methods declared in this interface. It will in turn send Mail.app's 
  17. //        MailListener instance the corresponding message (via a Mach 
  18. //        message), which will be interpreted, and subsequently executed 
  19. //        in Mail.app.
  20. //
  21. //        MailListener (and this class) support compose methods that both 
  22. //        do and do not take a window number as an argument.  You can 
  23. //        manage multiple compose windows by using those that do.  A
  24. //        unique window number is returned by reference in the method
  25. //        'openSend:'.  This is then used as the argument for methods that
  26. //        take a window number.
  27. //
  28. //        Port information...  You should first set an instance's send port to
  29. //        the named port "Mail".  This will launch Mail.app if not already.
  30. //        Then, to perform the methods declared in this interface, set the 
  31. //        send port to "MailSendDemo".
  32. //         
  33. //        This class is generated by the Unix 'msgwrap' utility.  It has been 
  34. //        reformatted for readability.  Mail.msg was the original file passed
  35. //        to msgwrap.
  36. //
  37. //    Disclaimer
  38. //
  39. //        You may freely copy, distribute and reuse this software and its
  40. //        associated documentation. I disclaim any warranty of any kind, 
  41. //        expressed or implied, as to its fitness for any particular use.
  42. //
  43. //----------------------------------------------------------------------------------------------------
  44. #import <appkit/Speaker.h>
  45.  
  46.  
  47. @interface MailSpeaker : Speaker
  48. {
  49. }
  50.  
  51. //----------------------------------------------------------------------------------------------------
  52. //  Compose Methods (window not specified)
  53. //----------------------------------------------------------------------------------------------------
  54. - (int) deliver;
  55. - (int) openSend;
  56. - (int) setBody : (char *) aString;
  57. - (int) setCc : (char *) aString;
  58. - (int) setSubject : (char *) aString;
  59. - (int) setTo : (char *) aString;
  60.  
  61.  
  62. //----------------------------------------------------------------------------------------------------
  63. //  Compose Methods (window specified) 
  64. //----------------------------------------------------------------------------------------------------
  65. - (int) deliver : (int) aWindow;
  66. - (int) openSend : (int *) aWindow;
  67. - (int) setBody : (char *) aString inWindow : (int) aWindow;
  68. - (int) setCc : (char *) aString inWindow : (int) aWindow;
  69. - (int) setSubject : (char *) aString inWindow : (int) aWindow;
  70. - (int) setTo : (char *) aString inWindow : (int) aWindow;
  71.  
  72. @end
  73.